package com.qx.pethome.entity;


import java.util.Date;

public class Apply {
    public static final Integer A_STATUS_NO=0;//申请状态（三种）0为未审批
    public static final Integer A_STATUS_YES=1;//申请状态（三种）1为已同意
    public static final Integer A_STATUS_DISAGREE=2;//申请状态（三种）2为不同意
    private Integer aId;//领养申请编号
    private Integer uId;//领养人编号
    private Integer pId;//宠物编号
    private Date aTime;//领养申请时间
    private Integer admId;//管理员编号
    private String aNote;//领养备注
    private Integer aStatus;//申请状态（三种）0为未审批，1为已同意，2为不同意

    public Apply() {
    }

    public Apply(Integer uId, Integer pId, Date aTime, Integer admId, String aNote, Integer aStatus) {
        this.uId = uId;
        this.pId = pId;
        this.aTime = aTime;
        this.admId = admId;
        this.aNote = aNote;
        this.aStatus = aStatus;
    }

    public Apply(Integer aId, Integer uId, Integer pId, Date aTime, Integer admId, String aNote, Integer aStatus) {
        this.aId = aId;
        this.uId = uId;
        this.pId = pId;
        this.aTime = aTime;
        this.admId = admId;
        this.aNote = aNote;
        this.aStatus = aStatus;
    }

    public Integer getaId() {
        return aId;
    }

    public void setaId(Integer aId) {
        this.aId = aId;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public Date getaTime() {
        return aTime;
    }

    public void setaTime(Date aTime) {
        this.aTime = aTime;
    }

    public Integer getAdmId() {
        return admId;
    }

    public void setAdmId(Integer admId) {
        this.admId = admId;
    }

    public String getaNote() {
        return aNote;
    }

    public void setaNote(String aNote) {
        this.aNote = aNote;
    }

    public Integer getaStatus() {
        return aStatus;
    }

    public void setaStatus(Integer aStatus) {
        this.aStatus = aStatus;
    }

    @Override
    public String toString() {
        return "领养申请表{" +
                "领养申请编号=" + aId +
                ", 宠物编号=" + uId +
                ", 宠物编号=" + pId +
                ", 领养申请时间=" + aTime +
                ", 管理员编号=" + admId +
                ", 领养备注='" + aNote + '\'' +
                ", 申请状态（=" + aStatus +
                '}';
    }
}
